package cn.zymall.goods.mapper;

import cn.zymall.common.model.Kinds;
import cn.zymall.common.model.SpuAttr;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author lxh
 * @Description 商品分类持久层接口
 * @date 2020/8/18 9:48
 * @Classname KindsMapper
 **/
@Mapper
public interface KindsMapper extends BaseMapper<Kinds> {

	/**
	 * 查询全部
	 * @return
	 */
	public List<Kinds> findAll();

	/**
	 * 添加商品分类
 	 * @param kinds
	 */
	public void add(Kinds kinds);


	/**
	 * 修改商品分类
	 * @param kinds
	 */
	public void amend(Kinds kinds);


	/**
	 * 根据id删除商品分类
	 * @param kinds
	 */
	public void del(Kinds kinds);


	/**
	 * 查询所有未禁用的商品分类
	 * @return
	 */
	public List<Kinds> findAllKinds();

}
